package com.xiaozhi.service.impl;

import cn.hutool.core.io.FileUtil;
import com.xiaozhi.dao.KnowledgeDocumentMapper;
import com.xiaozhi.entity.KnowledgeDocument;
import com.xiaozhi.service.IKnowledgeDocumentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.File;
import java.io.IOException;
import java.util.List;

/**
 * 知识库文档Service业务层处理
 *
 * @author zhaoyk
 * @date 2025-09-13
 */
@Service
public class KnowledgeDocumentServiceImpl implements IKnowledgeDocumentService {
    @Autowired
    private KnowledgeDocumentMapper knowledgeDocumentMapper;

    /**
     * 查询知识库文档列表
     *
     * @param knowledgeDocument 知识库文档
     * @return 知识库文档
     */
    @Override
    public List<KnowledgeDocument> selectKnowledgeDocumentList(KnowledgeDocument knowledgeDocument) {
        return knowledgeDocumentMapper.selectKnowledgeDocumentList(knowledgeDocument);
    }

}
